// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import postCssPxToRem from "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/node_modules/postcss-pxtorem/index.js";
import autoprefixer from "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/node_modules/autoprefixer/lib/autoprefixer.js";
import { createSvgIconsPlugin } from "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import path from "path";
var __vite_injected_original_dirname = "C:\\Users\\L2831\\Desktop\\windys\\fitasty-h5";
var __vite_injected_original_import_meta_url = "file:///C:/Users/L2831/Desktop/windys/fitasty-h5/vite.config.js";
var pathResolve = (pathStr) => {
  return path.resolve(__vite_injected_original_dirname, pathStr);
};
var vite_config_default = defineConfig({
  base: process.env.BASE_URL,
  plugins: [
    vue(),
    vueJsx(),
    createSvgIconsPlugin({
      // 指定需要缓存的svg图标文件夹，即需要识别的svg都应该放在这个文件夹下
      iconDirs: [pathResolve("./src/assets/icons")],
      symbolId: "icon-[dir]-[name]"
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    host: "192.168.31.62",
    open: true,
    port: 3e3,
    hmr: true,
    https: false,
    proxy: {
      "/fitasty": {
        target: "http://47.107.64.214",
        changeOrigin: true,
        rewrite: (path2) => path2.replace(/^\/fitasty/, "/fitasty")
      }
    }
  },
  css: {
    postcss: {
      plugins: [
        autoprefixer({
          overrideBrowserslist: ["Android 4.1", "iOS 7.1", "Chrome > 31", "ff > 31", "ie >= 8"]
        }),
        postCssPxToRem({
          // 自适应，px>rem转换
          rootValue: 37.5,
          // 75表示750设计稿，37.5表示375设计稿
          propList: ["*"],
          // 需要转换的属性，这里选择全部都进行转换
          selectorBlackList: ["norem"]
          // 过滤掉norem-开头的class，不进行rem转换
        })
      ]
    },
    preprocessorOptions: {
      scss: {
        // 配置全局sass变量注入
        // additionalData: '@import "@/styles/variable.scss";'
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxMMjgzMVxcXFxEZXNrdG9wXFxcXHdpbmR5c1xcXFxmaXRhc3R5LWg1XCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxMMjgzMVxcXFxEZXNrdG9wXFxcXHdpbmR5c1xcXFxmaXRhc3R5LWg1XFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy9MMjgzMS9EZXNrdG9wL3dpbmR5cy9maXRhc3R5LWg1L3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXHJcblxyXG5pbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJ1xyXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcclxuaW1wb3J0IHZ1ZUpzeCBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUtanN4J1xyXG5cclxuaW1wb3J0IHBvc3RDc3NQeFRvUmVtIGZyb20gJ3Bvc3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